package com.qtt.app.mapper;

import com.qtt.app.entity.RegisteredCourse;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface RegisteredCourseMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(RegisteredCourse record);

    int insertSelective(RegisteredCourse record);

    RegisteredCourse selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(RegisteredCourse record);

    int updateByPrimaryKey(RegisteredCourse record);

    @Select("SELECT id FROM registered_course ORDER BY id DESC LIMIT 1")
    Integer getLastId();
}